package router

import (
	"api-gateway/basic/config"
	"api-gateway/handler/api"
	"api-gateway/midderware"
	"github.com/gin-gonic/gin"
)

func GroupPing(v1 *gin.RouterGroup) {
	groupPing := v1.Group("/groupPing")
	{
		groupPing.Use(midderware.JWTAuth(config.KEY_JWT)) //中间件
		groupPing.POST("/ListGroupPing", api.ListGroupPing)
		groupPing.POST("/CreateGroupP", api.CreateGroupP)        //创建拼团
		groupPing.POST("/JoinGroupP", api.JoinGroupP)            //参团
		groupPing.GET("/GetGroupDetail", api.GetGroupDetail)     //获取拼团详情
		groupPing.GET("/UserGroupRecords", api.UserGroupRecords) //获取用户拼团记录
	}
}
